package com.Java.train.member.service;

import com.Java.train.common.response.PageResp;
import com.Java.train.common.response.CommonResp;
import com.Java.train.member.domain.DTO.PassengerDTO;
import com.Java.train.member.domain.Passenger;
import com.Java.train.member.req.PassengerQueryReq;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface PassengerService extends IService<Passenger> {
    CommonResp<PageResp<PassengerDTO>> queryList(PassengerQueryReq passengerQueryReq);

    CommonResp<Object> savePassenger(Passenger passenger);

    CommonResp<Object> deleteById(Long id);

    CommonResp<List<Passenger>> queryMine();
}
